package com.cius.eshop.service.impl;

import com.cius.eshop.bean.Cate;
import com.cius.eshop.bean.CateExample;
import com.cius.eshop.mapper.CateMapper;
import com.cius.eshop.service.CateService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by ciuscheung on 17/7/12.
 */
public class CateServiceImpl implements CateService {

    @Autowired
    CateMapper cateMapper;

    @Override
    public List<Cate> findCategoryList(CateExample cateExample) {
        return cateMapper.selectByExample(cateExample);
    }

    @Override
    public List<Cate> findCatesTree() {
        return cateMapper.findCatesTree();
    }
}
